package com.ssy.lingxi.order.api.model.vo.request;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.io.Serializable;
import java.util.List;

/**
 * 售后服务 - 修改订单商品的换货、退货、维修数量、退款金额
 * @author 万宁
 * @version 2.0.0
 * @date 2021-08-06
 */
public class OrderAfterSaleVO implements Serializable {
    private static final long serialVersionUID = 3492933630945033716L;
    /**
     * 订单Id
     */
    @NotNull(message = "订单Id要大于0")
    @Positive(message = "订单Id要大于0")
    private Long orderId;

    /**
     * 订单商品列表
     */
    @NotEmpty(message = "订单商品列表不能为空")
    @Valid
    private List<OrderProductAfterSaleVO> products;

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public List<OrderProductAfterSaleVO> getProducts() {
        return products;
    }

    public void setProducts(List<OrderProductAfterSaleVO> products) {
        this.products = products;
    }
}
